package licode.unisop.types.dp;

import org.springframework.util.Assert;

public class MenuOrder {

    private final int order;

    public MenuOrder(int order) {
        Assert.isTrue(order > 0,
                "菜单序号错误（大于0），当前：" + order);
        this.order = order;
    }

    public int getOrder() {
        return order;
    }

    @Override
    public String toString() {
        return order + "";
    }
}
